package com.imonsoft.sqm.service.business.supplier_quality;


import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.validation.BindingResult;

import com.imonsoft.common.base.service.BaseService;
import com.imonsoft.common.httpModel.DataGrid;
import com.imonsoft.common.httpModel.Pager;
import com.imonsoft.common.httpModel.ReturnMessage;
import com.imonsoft.sqm.pojo.business.supplier_quality.QualitySystem;
import com.imonsoft.sqm.pojo.sys.User;
import com.imonsoft.sqm.vo.business.supplier_quality.QualitySystemVo;

public interface QualitySystemService  extends BaseService<QualitySystem>{

	DataGrid<QualitySystemVo> getDataGridVoBy(QualitySystem qualitySystem, Pager pager);

	void deleteQualitySystem(List<Long> ids);

	QualitySystemVo getModifyData(Long id) throws Exception;

	void txUpdateOrAddQualitySystem(String qualitySystem) throws Exception;

	void txAddQualitySystem(String qualitySystem, ReturnMessage message, BindingResult result) throws Exception;
	
	/**
	 * 查询所有
	 */
	public List<QualitySystem> queryAll();
	/**
	 * 发送邮件得到用户
	 * @param ids
	 * @return
	 */
	public List<User> txgetUserForMail(String ids);
	/**
	 * 质量体系发送邮件
	 * @param qualitySystem
	 * @param user
	 * @param request
	 */
	public void txSendMail(HttpServletRequest request,HttpServletResponse response,String id);
	/**
	 * 向所有过期的供应商发送邮件，不需要参数
	 */
	public void txSendMailByDateOut(HttpServletRequest request,HttpServletResponse response);

}
